<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    //图片管理
	$router->resource('picture', PictureController::class);
	//云课堂
	$router->resource('cloudlesson', CloudLessonController::class);
	//课件管理
	$router->resource('courseware', CoursewareController::class);
	//好文
	$router->resource('article', ArticleController::class);

    //外教列表
	$router->resource('teacher', TeacherController::class);
	//外教时间表
	$router->resource('teacher_schedule', TeaScheduleController::class);

	//学生
	$router->resource('student', UserController::class);
	//学生任务列表
	$router->resource('stu_task', StuTaskController::class);
	//课程列表
	$router->resource('lesson', LessonController::class);
	//课后反馈
	$router->resource('feedback', LessonFeedbackController::class);
	//课程类型
	$router->resource('lesson_type', LessonTypeController::class);
	//订单
	$router->resource('order', OrderController::class);

	//分享日志
	$router->resource('share_log', ShareLogController::class);
	//试听申请列表
	$router->resource('apply_info', ApplyInfoController::class);
	//建议列表
	$router->resource('advice', AdviceController::class);
	//任务列表
	$router->resource('task', TaskController::class);
	
	//抵扣列表
	$router->resource('voucher', VoucherController::class);
});
